package com.gxar.quick.ar.server.db.mapper;

import com.gxar.quick.ar.server.base.model.exchange.vo.request.ExchangeItemRecordResponse;
import com.gxar.quick.ar.server.db.model.OrderEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author linsy
 * @version 1.0
 * @created 2023/11/3 11:14
 */
@Mapper
public interface OrderMapper {

    /**
     * 查询订单列表
     *
     * @param userId      用户id
     * @param orderStatus 订单状态
     * @return 订单实体
     */
    List<OrderEntity> queryPage(Long userId, Integer orderStatus);

    /**
     * 查询兑换品订单
     *
     * @param userId          用户ID
     * @param orderMethodEnum 订单方法
     * @return 响应
     */
    List<ExchangeItemRecordResponse> exchangeOrder(Long userId, List<Integer> orderMethodEnum);

}
